package com.py.credit.service;

import com.py.credit.entity.Application;
import com.py.credit.entity.CheckReport;
import com.py.framework.core.common.Page;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface CheckReportService {

	public int addApplicationInfo(String applicant_unit, String tybm, String check_purpose, String applicat_date, int user_id,String username);

	public Application selectApplicationInfo(int id);
	
	public CheckReport selectCheckReportInfo(@Param(value = "id") int id);

	public String selectTybmByQymc(String qymc);

	public void updateApplication(int id,String managerDate,String status,String pdfpath);
	
	public void updateCheckReport(int id,String checkTime,String checkStatus,String pdfpath);

	public List<Application> selectApplicationInfoList(int userId);
	
	public List<CheckReport> selectCheckReportInfoList(int userId);
	
	public List<CheckReport> getByConditionForPage(List<String> showColumns, String[] additionalColumns,
			String condition, Page page, String checkStatus, String addTimeStart, String addTimeEnd, int userId);
	
	public int addCheck(String ztmc,String tyshxydm,String tybm,String fddbr,String lxr,String lxrdh,String yx,String bz,String purpose,String purpose_str,Integer userId,String username);

	public Map selectUserInfo(@Param(value = "id") Integer id);
	
	public Map selectUserInfoByUserId(@Param(value = "userId") Integer userId);
}
